package com.zyong.design.pattern.bridge.case2;

/**
 * @program: zyong-design-pattern
 * @ClassName: Client
 * @author: zyong
 * @create: 2024-04-06 22:17
 */
public class Client {
    public static void main(String[] args) {
        XiaoMi xiaoMi = new XiaoMi();
        FoldedPhone foldedPhone = new FoldedPhone(xiaoMi);
        foldedPhone.open();
        foldedPhone.close();
        foldedPhone.call();

        System.out.println("====================================================");

        Vivo vivo = new Vivo();
        UpRightPhone upRightPhone = new UpRightPhone(vivo);
        upRightPhone.open();
        upRightPhone.close();
        upRightPhone.call();
    }
}
